import { Controller,Get,Req } from '@nestjs/common';
import { Request } from 'express';
import { Header } from '@nestjs/common';
import { HomeApiService, IHomePageData } from './home-api.service';

@Controller('home-api')
export class HomeApiController {
    constructor(private homeApiService: HomeApiService) {
        // intro:'This action returns all cats'
    }
    @Get('index')
    @Header('Cache-Control', 'none')
    async findAll(  @Req() request: Request  ): Promise<IHomePageData> {
        // const query = ;
        return this.homeApiService.findAll();
    }

}
